package com.tanhua.dubbo.api;

import com.tanhua.model.enums.CommentType;
import com.tanhua.model.mongo.Comment;

import java.util.List;

public interface CommentApi {

    //发布评论
    Integer save(Comment com);

    //分页查询评论
    List<Comment> findComments(String movementId, CommentType comment, Integer page, Integer pagesize);


    //动态点赞
    Boolean hasComment(String movementId, Long userId, CommentType like);
    //取消
    Integer delete(Comment comment);
}